package cn.tedu.csmall.product.dao.persist.mapper;

import cn.tedu.csmall.product.pojo.entity.Album;
import cn.tedu.csmall.product.pojo.vo.AlbumListItemVO;
import cn.tedu.csmall.product.pojo.vo.AlbumStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AlbumMapper extends BaseMapper<Album> {
   //批量插入相册数据
   int insertBatch(List<Album> albums);

   AlbumStandardVO getStandardById(Long id);

   List<AlbumListItemVO> list();
}
